0 رای
وضعیت موجودی موجود

قیمت قبلی: 3,470,000 ریال
قیمت: 3,070,000 ریال

 



Product details

  • Publisher ‏ : ‎ I/O Press (March 13, 2019)
  • Language ‏ : ‎ English
  • Paperback ‏ : ‎ 267 pages
  • ISBN-10 ‏ : ‎ 1871962609
  • ISBN-13 ‏ : ‎ 978-1871962604

 

کتاب Fundamental C: Getting Closer To The Machine

C is a good language to learn. It was designed to do a very different job from most modern languages and the key to understanding it is not to just understand the code, but how this relates to the hardware.


Fundamental C takes an approach that is close to the hardware, introducing addresses, pointers, and how things are represented using binary. An important idea is that everything is a bit pattern and what it means can change. As a C developer you need to think about the way data is represented, and Harry Fairhead encourages this.  He emphasizes the idea of modifying how a bit pattern is treated using type punning and unions. This power brings with it the scourge of the C world – undefined behavior - which is ignored in many books on C. Here, not only is it acknowledged, it is explained together with ways to avoid it.

A particular feature of the book is the way C code is illustrated by the assembly language it generates. This helps you understand why C is the way it is.

For beginners, the book covers installing an IDE and GCC before writing a Hello World program and then presents the fundamental building blocks of any program - variables, assignment and expressions, flow of control using conditionals and loops.

Once the essentials are in place, data types are explored before looking at arithmetic and representation. Harry then goes deeper into evaluating expressions before looking at functions and their scope and lifetime. Arrays, strings, pointers and structs are covered in separate chapters, as is bit manipulation, a topic that is key to using C, and the idea of a file as the universal approach to I/O. Finally, he looks at the four stages of compilation of a C program, the use of static and dynamic libraries and make.

This is C as it was always intended to be written - close to the metal.


Harry Fairhead has a hardware background and, having worked with microprocessors and electronics in general, for many years, he is an enthusiastic proponent of the IoT. His recent titles include Raspberry Pi IoT in C and Micro:bit IoT in C.  His next, Applying C For The IoT With Linux at intermediate/advanced level is intended as a companion to this book for those working in a Linux/POSIX environment, in particular the Raspberry Pi.

منابع کتاب کتاب Fundamental C: Getting Closer To The Machine

C زبان خوبی برای یادگیری است. این برای انجام یک کار بسیار متفاوت از اکثر زبان های مدرن طراحی شده است و کلید درک آن فقط درک کد نیست، بلکه نحوه ارتباط آن با سخت افزار است.


سی بنیادیرویکردی نزدیک به سخت افزار اتخاذ می کند، آدرس ها، اشاره گرها و نحوه نمایش اشیا با استفاده از باینری را معرفی می کند. یک ایده مهم این است که همه چیز کمی الگو است و معنای آن می تواند تغییر کند. به عنوان یک توسعه دهنده C، باید در مورد نحوه نمایش داده ها فکر کنید، و هری فرهد این را تشویق می کند. او بر ایده اصلاح نحوه برخورد با الگوی بیت با استفاده از نوع punning و اتحادها تأکید می کند. این قدرت، بلای جهان C - رفتار تعریف نشده - را به همراه دارد که در بسیاری از کتاب‌ها در مورد C نادیده گرفته شده است. در اینجا، نه تنها به آن اذعان می‌شود، بلکه همراه با راه‌های اجتناب از آن توضیح داده می‌شود.

یکی از ویژگی‌های خاص کتاب، نحوه نمایش کد C با زبان اسمبلی است که تولید می‌کند. این به شما کمک می کند بفهمید که چرا C این گونه است.

برای مبتدیان، این کتاب نصب IDE و GCC را قبل از نوشتن برنامه Hello World پوشش می‌دهد و سپس بلوک‌های اساسی هر برنامه را ارائه می‌کند - متغیرها، تخصیص و عبارات، جریان کنترل با استفاده از شرط‌ها و حلقه‌ها.

هنگامی که موارد ضروری در جای خود قرار گرفتند، انواع داده ها قبل از بررسی حساب و نمایش بررسی می شوند. سپس هری قبل از اینکه به توابع و محدوده و طول عمر آنها نگاه کند، به ارزیابی عبارات عمیق‌تر می‌پردازد. آرایه‌ها، رشته‌ها، اشاره‌گرها و ساختارها در فصل‌های جداگانه پوشش داده می‌شوند، مانند دستکاری بیت، موضوعی که کلید استفاده از C است، و ایده یک فایل به عنوان رویکرد جهانی برای I/O. در نهایت، او به چهار مرحله از کامپایل یک برنامه C، استفاده از کتابخانه های ایستا و پویا و ساخت نگاه می کند.

این C است همانطور که همیشه قرار بود نوشته شود - نزدیک به فلز.


هری فرهد سابقه سخت‌افزاری دارد و سال‌ها با ریزپردازنده‌ها و به طور کلی الکترونیک کار کرده است، او از طرفداران مشتاق اینترنت اشیا است. عناوین اخیر او عبارتند از Raspberry Pi IoT در C و Micro:bit IoT در C. بعدی او، Applying C For The IoT with Linux در سطح متوسط/پیشرفته به عنوان همراهی برای این کتاب برای کسانی که در محیط Linux/POSIX کار می کنند، در نظر گرفته شده است. به ویژه رزبری پای.

نظرات کاربران درباره کتاب Fundamental C: Getting Closer To The Machine

نظری در مورد این محصول توسط کاربران ارسال نگردیده است.
اولین نفری باشید که در مورد کتاب Fundamental C: Getting Closer To The Machine نظر می دهد.

ارسال نظر درباره کتاب Fundamental C: Getting Closer To The Machine

لطفا توجه داشته باشید که ایمیل شما منتشر نخواهد شد.

بر اساس سلیقه شما...

  این کتاب به صورت  رنگی  است. Product details ...
6,040,000 ریال

codebazan

طراحی و اجرا: فروشگاه ساز سبدخرید